﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Invoker.aspx.cs" Inherits="WSSaiGon.Invoker" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        Link webservice:
        <asp:TextBox ID="txtLinkWS" runat="server" Width="500px"></asp:TextBox>
        &nbsp;Method:
        <asp:TextBox ID="txtMethod" runat="server"></asp:TextBox>
        <br />
        Service Name: <asp:TextBox ID="txtServiceName" runat="server"></asp:TextBox>
    </p>
    <p>
        <asp:Label ID="Label1" runat="server" Text="Number of Parameters"></asp:Label>
        <asp:DropDownList ID="numberofParams" runat="server">
            <asp:ListItem Selected="True">0</asp:ListItem>
            <asp:ListItem>1</asp:ListItem>
            <asp:ListItem>2</asp:ListItem>
            <asp:ListItem>3</asp:ListItem>
            <asp:ListItem>4</asp:ListItem>
            <asp:ListItem>5</asp:ListItem>
        </asp:DropDownList>
        <br />
        <asp:Label ID="Label2" runat="server" Text="Parameter's Value"></asp:Label>
        <br />
        <asp:DropDownList ID="ddlType1" runat="server">
            <asp:ListItem Value="0">int</asp:ListItem>
            <asp:ListItem Value="1" Selected="True">string</asp:ListItem>
            <asp:ListItem Value="2">bool</asp:ListItem>
            <asp:ListItem Value="3">float</asp:ListItem>
        </asp:DropDownList>
        <asp:TextBox ID="txtInput1" runat="server"></asp:TextBox>
        <br />
        <asp:DropDownList ID="ddlType2" runat="server">
            <asp:ListItem Value="0">int</asp:ListItem>
            <asp:ListItem Value="1" Selected="True">string</asp:ListItem>
            <asp:ListItem Value="2">bool</asp:ListItem>
            <asp:ListItem Value="3">float</asp:ListItem>
        </asp:DropDownList>
        <asp:TextBox ID="txtInput2" runat="server"></asp:TextBox>
        <br />
        <asp:DropDownList ID="ddlType3" runat="server">
            <asp:ListItem Value="0">int</asp:ListItem>
            <asp:ListItem Value="1" Selected="True">string</asp:ListItem>
            <asp:ListItem Value="2">bool</asp:ListItem>
            <asp:ListItem Value="3">float</asp:ListItem>
        </asp:DropDownList>
        <asp:TextBox ID="txtInput3" runat="server"></asp:TextBox>
        <br />
        <asp:DropDownList ID="ddlType4" runat="server">
            <asp:ListItem Value="0">int</asp:ListItem>
            <asp:ListItem Value="1" Selected="True">string</asp:ListItem>
            <asp:ListItem Value="2">bool</asp:ListItem>
            <asp:ListItem Value="3">float</asp:ListItem>
        </asp:DropDownList>
        <asp:TextBox ID="txtInput4" runat="server"></asp:TextBox>
        <br />
        <asp:DropDownList ID="ddlType5" runat="server">
            <asp:ListItem Value="0">int</asp:ListItem>
            <asp:ListItem Value="1" Selected="True">string</asp:ListItem>
            <asp:ListItem Value="2">bool</asp:ListItem>
            <asp:ListItem Value="3">float</asp:ListItem>
        </asp:DropDownList>
        <asp:TextBox ID="txtInput5" runat="server"></asp:TextBox>
        <br />
        <asp:DropDownList ID="ddlType6" runat="server">
            <asp:ListItem Value="0">int</asp:ListItem>
            <asp:ListItem Value="1" Selected="True">string</asp:ListItem>
            <asp:ListItem Value="2">bool</asp:ListItem>
            <asp:ListItem Value="3">float</asp:ListItem>
        </asp:DropDownList>
        <asp:TextBox ID="txtInput6" runat="server"></asp:TextBox>
        <br />
        <asp:DropDownList ID="ddlType7" runat="server">
            <asp:ListItem Value="0">int</asp:ListItem>
            <asp:ListItem Value="1" Selected="True">string</asp:ListItem>
            <asp:ListItem Value="2">bool</asp:ListItem>
            <asp:ListItem Value="3">float</asp:ListItem>
        </asp:DropDownList>
        <asp:TextBox ID="txtInput7" runat="server"></asp:TextBox>
        <br />
        <asp:DropDownList ID="ddlType8" runat="server">
            <asp:ListItem Value="0">int</asp:ListItem>
            <asp:ListItem Value="1" Selected="True">string</asp:ListItem>
            <asp:ListItem Value="2">bool</asp:ListItem>
            <asp:ListItem Value="3">float</asp:ListItem>
        </asp:DropDownList>
        <asp:TextBox ID="txtInput8" runat="server"></asp:TextBox>
        <br />
        <asp:DropDownList ID="ddlType9" runat="server">
            <asp:ListItem Value="0">int</asp:ListItem>
            <asp:ListItem Value="1" Selected="True">string</asp:ListItem>
            <asp:ListItem Value="2">bool</asp:ListItem>
            <asp:ListItem Value="3">float</asp:ListItem>
        </asp:DropDownList>
        <asp:TextBox ID="txtInput9" runat="server"></asp:TextBox>
        <br />
        <asp:DropDownList ID="ddlType10" runat="server">
            <asp:ListItem Value="0">int</asp:ListItem>
            <asp:ListItem Value="1" Selected="True">string</asp:ListItem>
            <asp:ListItem Value="2">bool</asp:ListItem>
            <asp:ListItem Value="3">float</asp:ListItem>
        </asp:DropDownList>
        <asp:TextBox ID="txtInput10" runat="server"></asp:TextBox>
        <br />
        <asp:DropDownList ID="ddlType11" runat="server">
            <asp:ListItem Value="0">int</asp:ListItem>
            <asp:ListItem Value="1" Selected="True">string</asp:ListItem>
            <asp:ListItem Value="2">bool</asp:ListItem>
            <asp:ListItem Value="3">float</asp:ListItem>
        </asp:DropDownList>
        <asp:TextBox ID="txtInput11" runat="server"></asp:TextBox>
        <br />



        <label runat="server" id="returnTypeLB">Return Type:</label>
        <asp:DropDownList ID="ddlReturnType" runat="server">
            <asp:ListItem>int</asp:ListItem>
            <asp:ListItem Selected="True">string</asp:ListItem>
            <asp:ListItem>bool</asp:ListItem>
            <asp:ListItem>float</asp:ListItem>
        </asp:DropDownList>
        <asp:Button ID="btnCall" runat="server" Text="Call" OnClick="btnCall_Click" />
    </p>
    <asp:Panel ID="pnlResult" runat="server" BackColor="#EEEEEE">
        <asp:Label ID="lblResult" runat="server" Text="Result: "></asp:Label>
    </asp:Panel>
    <p>
        <strong>For testing: </strong>
        <br />
        Link Webservice: http://localhost:1444/Service.asmx
        <br />
        Method: Translate
        <br />
        Arg_1: en
        <br />
        Arg_2: vn
        <br />
        Arg_3: a
    </p>
</asp:Content>
